x86/hypercall: Move the hypercall tables into C
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 26 Jan 2015 14:15:23 +0000 (14:15 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 6 Sep 2016 12:34:46 +0000 (13:34 +0100)
commit222560eb0d0e03437a337f221e3cbf771bc32a0d
treec970469c8450f68d6cb3be8aacc7700ae81f2c3d
parent51e5d6c7a29640490eeab4e4c3d60b9c2d3d3054
x86/hypercall: Move the hypercall tables into C

Editing (and indeed, finding) the hypercall tables can be tricky, especially
towards the end where .rept's are used to maintain the correct layout.

Move this all into C, and let the compiler do the hard work.

To do this, xen/hypercall.h and asm-x86/hypercall.h need to contain prototypes
for all the hypercalls; some were previously missing.  This in turn requires
some shuffling of definitions and includes.

One difference is that NULL function pointers are used instead of
{,compat_}do_ni_hypercall(), which pv_hypercall() handles correctly.  All
ni_hypercall() infrastructure is therefore dropped.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hypercall.c
xen/arch/x86/x86_64/compat.c
xen/arch/x86/x86_64/compat/entry.S
xen/arch/x86/x86_64/compat/traps.c
xen/arch/x86/x86_64/entry.S
xen/arch/x86/x86_64/traps.c
xen/common/kernel.c
xen/include/asm-x86/hypercall.h
xen/include/xen/hypercall.h